<include file="__THEME__/header" />
<div class="content no_bg2">
  <div class="blog_right">
    <div class="blog_search">
      <form id="form1" name="form1" method="post" action="{:U('index/Blog/index')}">
        <div class="sosotg br3">
          <label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜索标签</label>
          <input type="text" class="sotg_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/>
          <input name="" type="submit" onclick="$('#quick_search_form').submit()" class="sotg_btn hand br3" value="&nbsp;"/>
        </div>
        <script>
	if($('#_header_search_text').val()=='')
		$('#_header_search_label').show();
	else
		$('#_header_search_label').hide();
	</script>
      </form>
    </div>
    <div class="blog_bg">
      <h3 class="f14px fB lh180">热门标签</h3>
      <div class="blog_tag2">
        <volist name="taglist" id="vo"> <a href="{:U('index/Blog/index',array('k'=>$vo['tag_name']))}">{$vo['tag_name']}</a> </volist>
      </div>
    </div>
    <div>
   <script type="text/javascript"><!--
	google_ad_client = "ca-pub-1704385913878111";
	/* 首页左侧 */
	google_ad_slot = "4686940906";
	google_ad_width = 250;
	google_ad_height = 250;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
    </div>
  </div>
  <volist name="bloglist" id="vo">
    <div class="blog_left" id="list_{$vo['weibo_id']}">
      <div class="blog_u">
        <space uid="vo.uid">{uavatar}</space>
      </div>
      <div class="blog_c">
        <div class="bl_Box"> <span class="blog_tag"><a href="{:U('home/Space',array('uid'=>$vo['from_uid']))}">{$vo['from_uname']}</a></span>
          <h3 class="f18px fB lh180"><a href="{:U('home/Space/blog',array('uid'=>$vo['uid'],'id'=>$vo['weibo_id']))}">{$vo['title']}</a></h3>
          <p>{$vo['content']} </p>
          <div class="blog_tag"> <span class="right">
            <php>if($vo['uid']==$mid){</php>
            <a href="{:U('home/Blog/edit',array('id'=>$vo['weibo_id']))}">编辑</a> <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这篇文章?')" callback="Deleted({$vo['weibo_id']})">删除</a>
            <php>}</php>
            <a href="#">热度</a><a href="#">回应</a>
            <php>if($vo['uid'] != $mid){</php>
            <a href="{:U('home/Blog/reship',array('id'=>$vo['weibo_id']))}">转载</a>
            <php>}</php>
            </span>
            <a href="{:U('home/Space/blog',array('uid'=>$vo['uid'],'id'=>$vo['weibo_id']))}">查看原文</a>
          </div>
          <!-- 标签 bigen-->
          <php>if($vo['tag']){</php>
          <div class="blog_tag ">
            <volist name="vo['tag']" id="tag"> <a href="{:U('index/blog/index',array('k'=>urlencode($tag)))}">#{$tag}</a> </volist>
          </div>
          <php>}</php>
          <!--标签 end--> 
        </div>
      </div>
    </div>
  </volist>
  <div class="blog_left">
    <p class="page">{$page}</p>
  </div>
</div>
<script>

function Deleted(wb_id){
    $.post(U('home/Blog/doDel'),{wb_id:wb_id},function(rel){
	    if(rel==1){
		$('#list_'+wb_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else if(rel==-1){
		ui.error('文章不存在或者已经删除');		
		}else{
		ui.error('删除失败');			
		}
	
	});	
}
</script> 
<include file="__THEME__/footer" /> 